<%@ page import="com.storeselector.storemanagement.Store" %>



<div class="fieldcontain ${hasErrors(bean: storeInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="store.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${storeInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: storeInstance, field: 'abbreviation', 'error')} ">
	<label for="abbreviation">
		<g:message code="store.abbreviation.label" default="Abbreviation" />
		
	</label>
	<g:textField name="abbreviation" value="${storeInstance?.abbreviation}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: storeInstance, field: 'address', 'error')} required">
	<label for="address">
		<g:message code="store.address.label" default="Address" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="address" maxlength="100" required="" value="${storeInstance?.address}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: storeInstance, field: 'city', 'error')} required">
	<label for="city">
		<g:message code="store.city.label" default="City" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="city" required="" value="${storeInstance?.city}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: storeInstance, field: 'state', 'error')} required">
	<label for="state">
		<g:message code="store.state.label" default="State" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="state" required="" value="${storeInstance?.state}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: storeInstance, field: 'zip', 'error')} required">
	<label for="zip">
		<g:message code="store.zip.label" default="Zip" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="zip" required="" value="${fieldValue(bean: storeInstance, field: 'zip')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: storeInstance, field: 'phone', 'error')} required">
	<label for="phone">
		<g:message code="store.phone.label" default="Phone" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="phone" maxlength="10" required="" value="${storeInstance?.phone}"/>
</div>

